package com.kexuexiong.demo.bear.common.multiDataSource;


import javax.sql.DataSource;
import java.util.Collection;

/**
 * 数据源管理器
 */
public interface DataSourceManager {

    void put(String dataSourceName, DataSource dataSource);

    DataSource get(String dataSourceName);

    Boolean hasDataSource(String dataSourceName);

    void remove(String dataSourceName);

    void closeDataSource(String dataSourceName);

    Collection<DataSource> all();
}
